class SPClassPointsProductEntity{
  List<SPClassProductCategory> ?spProCategory;
  List<SPClassProduct> ?spProProduct;

  SPClassPointsProductEntity.fromJson(Map<String ,dynamic> json){
    if (json['category'] != null) {
      spProCategory = [];(json['category'] as List).forEach((v) { spProCategory?.add(new SPClassProductCategory.fromJson(v)); });
    }
    if (json['product'] != null) {
      spProProduct = [];(json['product'] as List).forEach((v) { spProProduct?.add(new SPClassProduct.fromJson(v)); });
    }
  }
}

class SPClassProductCategory{
  String ?spProCategoryId;
  String ?spProCategoryName;
  String ?spProProductNum;
  String ?spProCategoryIcon;
  String ?spProUpdateTime;

  SPClassProductCategory.fromJson(Map<String ,dynamic> json){
    if(json['category_id']!=null){
      spProCategoryId=json['category_id'].toString();
    }
    if(json['category_name']!=null){
      spProCategoryName=json['category_name'].toString();
    }
    if(json['product_num']!=null){
      spProProductNum=json['product_num'].toString();
    }
    if(json['category_icon']!=null){
      spProCategoryIcon=json['category_icon'].toString();
    }
    if(json['update_time']!=null){
      spProUpdateTime=json['update_time'].toString();
    }
  }
}

class SPClassProduct{
  String ?spProProductId;
  String ?spProCategoryId;
  String ?spProProductName;
  String ?spProDescribe;
  String ?spProContent;
  String ?spProProductType;
  String ?spProType;
  String ?spProPrice;
  String ?spProIsOpen;
  String ?spProIcon;
  List ?spProBanner;
  String ?spProNum;
  String ?spProSort;
  String ?spProCreateTime;
  String ?spProUpdateTime;

  SPClassProduct.fromJson(Map<String ,dynamic> json){
    if(json['product_id']!=null){
      spProProductId=json['product_id'].toString();
    }
    if(json['category_id']!=null){
      spProCategoryId=json['category_id'].toString();
    }
    if(json['product_name']!=null){
      spProProductName=json['product_name'].toString();
    }
    if(json['describe']!=null){
      spProDescribe=json['describe'].toString();
    }
    if(json['content']!=null){
      spProContent=json['content'].toString();
    }
    if(json['product_type']!=null){
      spProProductType=json['product_type'].toString();
    }
    if(json['type']!=null){
      spProType=json['type'].toString();
    }
    if(json['price']!=null){
      spProPrice=json['price'].toString();
    }
    if(json['is_open']!=null){
      spProIsOpen=json['is_open'].toString();
    }
    if(json['icon']!=null){
      spProIcon=json['icon'].toString();
    }
    if(json['banner']!=null){
      spProBanner=json['banner']??[];
    }
    if(json['num']!=null){
      spProNum=json['num'].toString();
    }
    if(json['sort']!=null){
      spProSort=json['sort'].toString();
    }
    if(json['create_time']!=null){
      spProCreateTime=json['create_time'].toString();
    }
    if(json['update_time']!=null){
      spProUpdateTime=json['update_time'].toString();
    }
  }
}